﻿using SqlSugar;
using YNTK.Common.Const;

namespace YNTK.EIMS.Entitys.Suppliers
{
    /// <summary>
    /// 供应商产品库
    /// </summary>
    [SugarTable("eims_supplier_productlibrary")]
    [Tenant(ClaimConst.TENANT_ID)]
    public class SupplierProductLibraryEntity
    {
        /// <summary>
        /// 产品id
        /// </summary>
        [SugarColumn(ColumnName = "F_Id", ColumnDescription = "产品id")]
        public string Id { get; set; }

        /// <summary>
        /// 所属组织id
        /// </summary>
        [SugarColumn(ColumnName = "F_OrganizeId", ColumnDescription = "所属组织id")]
        public string OrganizeId { get; set; }

        /// <summary>
        /// 所属机构id
        /// </summary>
        [SugarColumn(ColumnName = "F_MechanismId", ColumnDescription = "所属机构id")]
        public string MechanismId { get; set; }

        /// <summary>
        /// 供应商id
        /// </summary>
        [SugarColumn(ColumnName = "F_SupplierId", ColumnDescription = "供应商id")]
        public string SupplierId { get; set; }

        /// <summary>
        /// 产品分类id
        /// </summary>
        [SugarColumn(ColumnName = "F_ClassifyId", ColumnDescription = "产品分类id")]
        public string ClassifyId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorTime", ColumnDescription = "创建时间")]
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        [SugarColumn(ColumnName = "F_CreatorUserId", ColumnDescription = "创建用户")]
        public string CreatorUserId { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(ColumnName = "F_ProductName", ColumnDescription = "产品名称")]
        public string ProductName { get; set; }

        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(ColumnName = "F_ProductNo", ColumnDescription = "产品编号")]
        public string ProductNo { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        [SugarColumn(ColumnName = "F_Specification", ColumnDescription = "规格型号")]
        public string Specification { get; set; }

        /// <summary>
        /// 标签,多个标签按“|”分割
        /// </summary>
        [SugarColumn(ColumnName = "F_LabelTag", ColumnDescription = "标签,多个标签按逗号分割")]
        public string LabelTag { get; set; }

        /// <summary>
        /// 参考价格
        /// </summary>
        [SugarColumn(ColumnName = "F_ReferencePrice", ColumnDescription = "参考价格")]
        public decimal ReferencePrice { get; set; }

        /// <summary>
        /// 产地
        /// </summary>
        [SugarColumn(ColumnName = "F_PlaceOrigin", ColumnDescription = "产地")]
        public string PlaceOrigin { get; set; }

        /// <summary>
        /// 产品主图服务器存储路径
        /// </summary>
        [SugarColumn(ColumnName = "F_MainFigure", ColumnDescription = "产品主图服务器存储路径")]
        public string MainFigure { get; set; }

        /// <summary>
        /// 排序码
        /// </summary>
        [SugarColumn(ColumnName = "F_SortCode")]
        public long? SortCode { get; set; }

        /// <summary>
        /// 启用标识
        /// </summary>
        [SugarColumn(ColumnName = "F_EnabledMark")]
        public int? EnabledMark { get; set; }

        /// <summary>
        /// 浏览次数
        /// </summary>
        [SugarColumn(ColumnName = "F_ViewCount", ColumnDescription = "浏览次数")]
        public int ViewCount { get; set; }

    }
}
